/**
 *Copyright (c) 2024 watereyes
 * workflow is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.workflow.workflowDesign.bean;

import com.koron.workflow.common.bean.BaseBean;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class ProcessSetBean extends BaseBean {
    // 应用ID
    @NotNull(message = "应用不能为空")
    @Size(max = 50, message = "应用最多能输入50个字符")
    private String appId;
    // 模板组编号
    @NotNull(message = "模板组编号不能为空")
    @Size(max = 50, message = "模板组编号最多能输入50个字符")
    private String code;
    // 模板组名称
    @NotNull(message = "模板组名称不能为空")
    @Size(max = 50, message = "模板组名称最多能输入50个字符")
    private String name;
    // 模板组描述
    @NotNull(message = "模板组描述不能为空")
    @Size(max = 300, message = "模板组描述最多能输入300个字符")
    private String description;
    // 状态 0:停用，1:启用
    @NotNull(message = "状态不能为空")
    @Range(min = 0, max = 1, message = "状态只能为0(停用)或1(启用)")
    private Integer status;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
